﻿<%@ Page Language="C#" MasterPageFile="~/MasterALSafa.Master"AutoEventWireup="true" CodeBehind="SRV_Clothe_Stock_Record.aspx.cs" Inherits="School.Pages.Uniforms.SRV_Clothe_Stock_Record" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register src="../UserControls/CampusPackage.ascx" tagname="CampusPackage" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  <ContentTemplate>
    <div>
        <table align="right" dir="rtl">
            <tr>
              <td colspan="1" rowspan="2">
                    <uc1:CampusPackage ID="CampusPackage1" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="padding-right: 15px; width: 80px;">
                  </td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                <div style="float:right;width:180px;padding-right: 100px;">
                    <asp:Button ID="btnSearch" runat="server" CssClass="graybutton" 
                        OnClick="btnSearch_Click" Text="بحث" ValidationGroup="bu" Width="81px" />
                        </div>
                        
                </td>
            </tr>
            <tr>
                <td colspan="3" style="color: Green">
                    <asp:Literal ID="lblResult" runat="server"></asp:Literal>
                </td>
            </tr>
          
            <tr>
                <td colspan="3">
               
                    <asp:GridView ID="gvdata" runat="server" 
                        AlternatingRowStyle-CssClass="GridItemAltername" AutoGenerateColumns="False" 
                        CssClass="Grid" DataKeyNames="SizeId" FooterStyle-CssClass="GridHeaderFooter" 
                        HeaderStyle-CssClass="GridHeaderFooter" PagerStyle-CssClass="GridPager" 
                        Width="600px">
                        <Columns>
                            <asp:BoundField DataField="ClotheCode" HeaderText="كود الزى" />
                            <asp:BoundField DataField="Name" HeaderText="الزى" />
                            <asp:BoundField DataField="Size_Code" HeaderText="كود المقاس" />
                            <asp:BoundField DataField="SizeName" HeaderText="المقاس" />
                            <asp:BoundField DataField="SystemQty" HeaderText="الكميه المخزنيه" />
                            <asp:TemplateField HeaderText="الكميه الفعليه">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtQty" runat="server" Text='<%#Eval("Pysical_Qty")%>'
                                        onkeypress="return FilterFloat(this, event)"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="الفرق بين الكميات">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtDifferance" runat="server" BackColor="White"
                                     Text='<%#Eval("Differance")%>' onkeypress="return FilterFloat(this, event)" ReadOnly="true">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                     </asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
              
                </td>
              </tr>
            <tr>
              <td colspan="3" style="padding-right: 220px; padding-top: 20px; height: 50px;">
                    <asp:Button ID="btnSaveStock" runat="server" CssClass="graybutton" 
                        onclick="btnSaveStock_Click" Text="حساب الفرق" Width="90" />
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    </td>
            </tr>
        </table>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
  </asp:Content>
